<%@ page contentType="text/html" pageEncoding="UTF-8" language="java"%>﻿
<%@include file="/WEB-INF/jsp/header.jsp" %>
<section id="edit">
  <div>
    <form:form modelAttribute="userEdition" action="/profile/edit.htm" method="post">
      <fieldset>
        <legend>Identifiants</legend>
        <p>
          <label>Login :</label>
          <form:input path="login" readonly="readonly" required="required"/>
        </p>
        <p>
          <label>Courriel <span class="required">*</span> :</label>
          <form:input path="email" type="email" required="required"/>
        </p>
        <p>
          <label>Nouveau mot de passe :</label>
          <form:password path="newPassword"/>
        </p>
        <p>
          <label>Confirmation du mot de passe :</label>
          <form:password path="checkNewPassword"  data-equals="newPassword"/>
        </p>
        <p>
          <label>Ancien mot de passe :</label>
          <form:password path="password"/>
        </p>
      </fieldset>
      <fieldset>
        <legend>Données personnelles</legend>
        <p>
          <label>Civilité <span class="required">*</span> :</label>
          <form:radiobutton path="title" value="0"/>
          <label>Monsieur</label>
          <form:radiobutton path="title" value="1"/>
          <label>Madame</label>
          <form:radiobutton path="title" value="2"/>
          <label>Mademoiselle</label>
        </p>
        <p>
          <label>Prénom <span class="required">*</span> :</label>
          <form:input path="firstName" required="required"/>
        </p>
        <p>
          <label>Nom <span class="required">*</span> :</label>
          <form:input path="lastName" required="required"/>
        </p>
        <p>
          <label>Adresse <span class="required">*</span> :</label>
          <form:input path="address0" required="required"/>
        </p>
        <p>
          <label></label>
          <form:input path="address1"/>
        </p>
        <p>
          <label></label>
          <form:input path="address2"/>
        </p>
        <p>
          <label>Code Postal <span class="required">*</span> :</label>
          <form:input path="zipCode" required="required"/>
        </p>
        <p>
          <label>Ville <span class="required">*</span> :</label>
          <form:input path="city" required="required"/>
        </p>
        <p>
          <label>Pays <span class="required">*</span> :</label>
          <form:input path="country" required="required"/>
        </p>
        <p>
          <label>Date de naissance <span class="required">*</span> :</label>
          <form:input path="birthDateWrapper" type="date" required="required"/>
        </p>
        <p>
          <label>Téléphone fixe :</label>
          <form:input path="phoneHome"/>
        </p>
        <p>
          <label>Téléphone portable :</label>
          <form:input path="phoneGsm"/>
        </p>
      </fieldset>
      <fieldset>
        <legend>Abonnements</legend>
        <p>
          <form:checkbox path="acceptNewsletterSite" value="1"/>
          <label>J'accepte de recevoir la newsletter du site</label>
        </p>
        <p>
          <form:checkbox path="acceptNewsletterPartners" value="1"/>
          <label>J'accepte de recevoir les newsletters des partenaires de bet-on-tv.com</label>
        </p>
        <form:hidden path="id" />
        <input type="submit" name="submit" value="Confirmation" >
      </fieldset>
    </form:form>
  </div>
</section>
<%@include file="/WEB-INF/jsp/footer.jsp" %>

